package com.apes.fn.server.workDesk.model;

import com.apes.fn.server.workDesk.service.WorkDeskVehicleControlService;
import com.apes.framework.util.MapUtil;
import com.apestech.framework.json.JSONObject;
import lombok.Getter;

/**
 * @program: apes-server
 * @description: 工作台车辆总控SQL查询
 * @author: lws
 * @create: 2022-11-03 11:27
 **/

@Getter
public enum VehicleControlSQLParamEnum {
    IN_STORE("WorkDeskVehicleControl.total","在店",new JSONObject(MapUtil.mapper("IN_STORE","IN_STORE",
                                                                                "PARAM_ONE", WorkDeskVehicleControlService.TO_BE_INVOICED,
                                                                                "PARAM_TWO", WorkDeskVehicleControlService.TO_BE_DELIVERED,
                                                                                "PARAM_THREE",WorkDeskVehicleControlService.IN_STORE_ID))),
    INTERNAL_ASSOCIATION("WorkDeskVehicleControl.total","内协中",new JSONObject(MapUtil.mapper("FSM_STATE_ID",WorkDeskVehicleControlService.IN_THE_INNER_ASSOCIATION))),
    WAIT_PAY_CAR("WorkDeskVehicleControl.total","待交车",new JSONObject(MapUtil.mapper("FSM_STATE_ID",WorkDeskVehicleControlService.TO_BE_DELIVERED))),
    NOT_RETAIL_ORDER_PAY_CAR("WorkDeskVehicleControl.total","未结算交车",new JSONObject(MapUtil.mapper("FSM_STATE_ID",WorkDeskVehicleControlService.UNSETTLED_DELIVERY,
                                                                                                                              "NOT_RETAIL","NOT_RETAIL"))),

    CARD_DATE("WorkDeskVehicleControl.cardAll","卡片数据",
            new JSONObject(MapUtil.mapper("UNSETTLED_DELIVERY",WorkDeskVehicleControlService.UNSETTLED_DELIVERY,
                    "STATEMENT_DELIVERY",WorkDeskVehicleControlService.STATEMENT_DELIVERY,
            "FINISH",WorkDeskVehicleControlService.FINISH))
    ),



    CARD_SERVICE_PLAN("WorkDeskVehicleControl.cardServicePlan","服务方案",new JSONObject(MapUtil.mapper("cardServicePlan","cardServicePlan"))),
    CARD_LOSS_QUOTATION("WorkDeskVehicleControl.cardLossQuotation","定损方案",new JSONObject(MapUtil.mapper("cardLossQuotation","cardLossQuotation"))),

    CAR_DATE("WorkDeskVehicleControl.carDate","车辆信息",new JSONObject(MapUtil.mapper("carDate","carDate"))),

    SERVICE_PLAN_DETAIL("WorkDeskVehicleControl.servicePlanDetail","边框服务信息",new JSONObject(MapUtil.mapper("servicePlanDetail","servicePlanDetail"))),
    LOSS_QUOTATION_DETAIL("WorkDeskVehicleControl.lossQuotationDetail","边框定损信息",new JSONObject(MapUtil.mapper("lossQuotationDetail","lossQuotationDetail")));

    private String queryId;
    private String remark;
    private JSONObject param;
    VehicleControlSQLParamEnum(String queryId,String remark,JSONObject param){
        this.queryId = queryId;
        this.remark = remark;
        this.param = param;
        param.put("FSM_FLOW_ID_DEFAULT","000583");
    }
}
